package com.hy;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
//水果供应者注解
@Target(FIELD)
@Retention(RUNTIME)
@Documented
public @interface FruitProvider {
    //供应商编号
    public int id() default -1;

    //供应商名称
    public String name() default "";

    //供应商地址
    public String address() default "";

}
